#ifndef __BCAST_H__
#define __BCAST_H__

#define MAX_CNT_NUM  4
// temp
#define DELUGE_TX_DATA 2
#define DELUGE_RX_DATA 3
#define DELUGE_TX_REQ  4
#define DELUGE_RX_REQ  5
#define DELUGE_TX_ADV  6
#define DELUGE_RX_ADV  7

#define AM_BCASTMSG  0xAB

#define BMTYPE_SYNC  0xE1
#define BMTYPE_REPORT_NORMAL 0xE2
#define BMTYPE_REPORT_ERROR  0xE3 

typedef struct BcastMsg {
	uint16_t id; // node id
	uint8_t  type;
	uint8_t  reserved1;
	uint16_t cnt[MAX_CNT_NUM];
	uint32_t decode; // decoding delay
	uint32_t globalTime;
} BcastMsg;//24

#endif // __BCAST_H__
